πŸ•ΈοΈ Ada Research Browser

README.md
← Back

OpenTofu Infrastructure

OpenTofu modules and environment configurations for provisioning the SRE platform's cloud infrastructure. OpenTofu is a fully open-source (MPL 2.0) fork of Terraform with identical HCL syntax and provider compatibility.

See OpenTofu patterns for coding conventions.

Structure

tofu/
β”œβ”€β”€ modules/          # Reusable, provider-agnostic modules
β”‚   β”œβ”€β”€ compute/      # VM instances for RKE2 nodes
β”‚   β”œβ”€β”€ network/      # VPC, subnets, security groups
β”‚   β”œβ”€β”€ dns/          # DNS zone and record management
β”‚   β”œβ”€β”€ load-balancer/ # L4 load balancer for K8s API and Istio ingress
β”‚   └── storage/      # Object storage (S3-compatible) for backups, logs, state
β”œβ”€β”€ environments/     # Per-environment compositions
β”‚   β”œβ”€β”€ dev/
β”‚   β”œβ”€β”€ staging/
β”‚   └── production/
└── scripts/          # Helper scripts (state backend init, etc.)

Usage

task infra-plan ENV=dev      # Preview changes
task infra-apply ENV=dev     # Apply changes

Key Rules